// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "AIController.h"
#include "EnemyAIController.generated.h"

/**
 * 
 */
UCLASS()
class TAFANG2_API AEnemyAIController : public AAIController
{
	GENERATED_BODY()

	UPROPERTY()
	class AEnemyZDCharacter* OwnerCharacter;

	FVector NextLocation;
	
	bool IsMoveSuccess = true;
	bool IsMoving = false;
	
public:
	virtual void Tick(float DeltaSeconds) override;
	virtual void BeginPlay() override;
	virtual void OnPossess(APawn* InPawn) override;
	virtual void OnMoveCompleted(FAIRequestID RequestID, const FPathFollowingResult& Result) override;

	// 设置下一个移动点。
	void SetNextLocation(const FVector& Location);
	void StartMove();
	
};
